<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<jsp:include page="/public/public.jsp"/>
</head>
<body>
<jsp:include page="/public/head.jsp"/>  
    <div class="wrapper clearfix">
    <jsp:include page="/public/left.jsp"/>  
	<div class="main">
<s:form name="roleAction" action="roleRResource!saveResources.action" namespace="/role">
<input type="hidden" value="${roleId }" name="roleId"/>
<table class="advert-tab" cellspacing="0">
<tr class="advert-th">
		<th style="text-align:right;"><input type="submit" value="提交"/>&nbsp;<input type="button" value="返回" onclick="history.back();"/></th>
	</tr>
	<tr>
		<td style="text-align:left;">
			<s:iterator  value="#request.reslist" id="resource" status="resourcelist">
			<s:set name="rid" value="#resource.resId" />
				<span style="width:200px;">
					<input type="checkbox" name="resIds" id="chk_<s:property value="#resource.resId" />" 
					<s:iterator  value="#request.roleResList" id="resd" status="resourced">
					<s:if test="#resd.resourceId==#rid">
						checked
					</s:if>
					</s:iterator>
					value="<s:property value="#resource.resId" />"/>
					<s:property value="#resource.resName" />&nbsp;
				</span>
			</s:iterator>
		</td>
	</tr>

</table>

</s:form>
</div>
</div>
<%@ include file="/public/footer.jsp"%>
</body>
</html>